<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="javascript:">系统配置</a></li>
		</ul>
        <form class="well form-search" method="post" action="{:U('Sysconfig/index')}">
            标题:
            <input type="text" name="config_title" style="width: 150px;" value="{:I('request.config_title/s','')}" placeholder="请输入标题">
            备注说明：
			<input type="text" name="config_remark" style="width: 150px;" value="{:I('request.config_remark/s','')}" placeholder="请输入备注说明">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:U('Sysconfig/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>标题</th>
					<th>配置对应值</th>
					<th>备注说明</th>
					<th width="80">{:L('STATUS')}</th>
					<th width="100">{:L('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<php>$config_status=array("0"=>'下线',"1"=>'上线');</php>
				<foreach name="configdata" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.config_title}</td>
					<td>{$vo.config_value}</td>
					<td>{$vo.config_remark}</td>
					<td>{$config_status[$vo['use_flg']]}</td>
					<td>
						<a href='{:U("Sysconfig/configedit",array("id"=>$vo["id"]))}'>{:L('EDIT')}</a>
					</td>
				</tr>
				</foreach>

			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
